package com.scuec.trainingmanagementsys.service;

import com.scuec.trainingmanagementsys.entity.Announcement;

import java.util.List;

public interface AnnouncementService {

    // 整表查询
    List<Announcement> findAll();

    // 根据公告标题模糊查询
    List<Announcement> findByTitle(String title);

    // 删除单条信息
    int deleteByTitle(String title);

    // 多选删除信息
    int deleteByTitles(List<String> titles);

    // 根据教师的teacherNumber查询公告
    List<Announcement> findByTeacherNumber(String teacherNumber);

    // 新增公告
    int addAnnouncement(Announcement announcement);
}